
import java.awt.BorderLayout;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JTextField;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class NoticePanel extends JPanel{
    
    JPanel pToday = new JPanel();
    JPanel pTomorrow = new JPanel();
    
    JList lst = null;
    
    JTextField txtmsg = new JTextField(30);
    JButton btnok = new JButton("提交");

    public NoticePanel() {
        this.setLayout(new GridLayout(2, 1, 100, 5));
        this.add(pToday);
        this.add(pTomorrow);
        
        pToday.setBorder(BorderFactory.createTitledBorder("今日提示"));
        pTomorrow.setBorder(BorderFactory.createTitledBorder("添加明日备忘"));
        
       //pToday
        pToday.setLayout(new BorderLayout());
        ArrayList 1 =new Notices()
                
                
                
                if(1==null){
                    pToday.add(new JLabel("今天没有什么听不懂事项要做",JLabel.CENTER));
                    
                }
    }

}
